package happyloan.core;

public class RespEvent<T> {
    public interface Code {
        int SUCCEED = 0xFF;
        int FAILURE = 0xFE;
        int ERROR = 0XFD;
    }

    private String url;//请求链接
    private int code;//成功、失败、错误
    private T t;//字段 data
    private String extra;//其他信息，比如 msg
    private boolean isAlert;//是否弹出提示文字

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public boolean isAlert() {
        return isAlert;
    }

    public void setAlert(boolean alert) {
        isAlert = alert;
    }
}
